<%--
  Created by IntelliJ IDEA.
  User: bbb304
  Date: 2025/11/2
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
  <title>员工管理系统 - 登录</title>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<div class="login-container">
  <div class="login-form">
    <h2>员工信息管理系统</h2>

    <c:if test="${not empty errorMessage}">
      <div class="error-message">${errorMessage}</div>
    </c:if>

    <form action="${pageContext.request.contextPath}/LoginServlet" method="post">
      <div class="form-group">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" required>
      </div>

      <div class="form-group">
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" required>
      </div>

      <button type="submit" class="btn btn-primary">登录</button>
    </form>

    <div class="test-accounts">
      <p>测试账号:</p >
      <p>用户名: admin, 密码: admin123</p >
      <p>用户名: manager, 密码: manager123</p >
    </div>
  </div>
</div>
</body>
</html>